/* ==================== GLOBAL ==================== */
/* General page styles and reusable section formatting */

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
}

.section-padding {
  padding: 90px 0;
}

.section-label {
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.section-title {
  font-weight: 700;
  color: #0f172a;
}


/* ==================== NAVIGATION ==================== */
/* Main navigation bar and links */

.portfolio-navbar {
  background-color: #0f1f35;
  padding: 18px 0;
}

.navbar-brand {
  color: #ffffff;
}

.nav-link {
  color: #cbd5e1;
  margin-left: 18px;
  transition: 0.3s;
}

.nav-link:hover {
  color: #38bdf8;
}

/* Keep the authentication link accessible during keyboard focus */
.portfolio-navbar .nav-link[href="/auth/login"]:focus,
.portfolio-navbar .nav-link[href="/auth/login"]:focus-visible {
  color: #38bdf8;
}

/* Project page has more navigation links than the other pages.
   Keep them on one row when the full desktop navigation is displayed. */
@media (min-width: 1400px) {
  .project-navigation {
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    white-space: nowrap;
  }

  .project-navigation .nav-link {
    margin-left: 0;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 1rem;
  }
}

@media (max-width: 1399px) {
  .portfolio-navbar .navbar-nav {
    padding-top: 15px;
  }

  .portfolio-navbar .nav-link {
    margin-left: 0;
  }
}

/* ==================== HERO ==================== */
/* Main hero section and portfolio image */

.hero-section {
  min-height: 85vh;

  background: linear-gradient(135deg, #0b1220 0%, #0f2747 55%, #0f4c5c 100%);

  color: white;
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-section h1 {
  font-size: clamp(2.25rem, 2.8vw, 2.75rem);
  line-height: 1.15;
}

.hero-label {
  color: #38bdf8;
  font-size: 1.3rem;
  font-weight: 600;
}

.hero-subtitle {
  color: #cbd5e1;
}

.hero-testing-types {
  color: #5eead4;
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-img {
  border-radius: 18px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-img:hover {
  transform: translateY(-5px);

  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

/* ==================== ABOUT ==================== */
/* About section text */

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #475569;
}

.about-link {
  color: #2563eb;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.about-link:hover,
.about-link:focus,
.about-link:focus-visible {
  color: #1d4ed8;
}

.about-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 2px;
}


/* ==================== SKILLS ==================== */
/* Skills section and reusable skill cards */

.skills-section {
  background-color: #eef3f8;
}

.automation-cta-section {
  background-color: #eef3f8;
}

.skill-card {
  background-color: white;

  padding: 30px;

  height: 100%;

  border-radius: 14px;

  border: 1px solid #e2e8f0;

  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.skill-card h3 {
  font-size: 1.3rem;
  color: #0f172a;
  margin-bottom: 15px;
}

.skill-card p {
  color: #64748b;
  margin-bottom: 0;
}


/* ==================== QA PROJECT ==================== */
/* Featured QA project section and technology list */

.project-section {
  background-color: #0b1220;
  color: white;
}

.project-section h2 {
  color: white;
}

.project-description {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.technology-item {
  background-color: #162235;

  border: 1px solid #334155;

  padding: 15px 18px;

  border-radius: 10px;

  color: #e2e8f0;

  font-weight: 500;
}


/* Application flow from UI to database */

.application-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.flow-step {
  color: #e2e8f0;
  font-weight: 600;
  padding: 8px 0;
}

.flow-arrow {
  color: #22d3ee;
  font-size: 1.4rem;
  font-weight: 700;
}

/* Project summary card and checklist */

.project-summary-card {
  background-color: #111c2e;

  border: 1px solid #334155;

  border-radius: 18px;

  padding: 35px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.project-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.project-list li {
  padding: 12px 0;
  color: #cbd5e1;
  border-bottom: 1px solid #334155;
}

.project-list li::before {
  content: "✓";
  color: #2dd4bf;
  font-weight: bold;
  margin-right: 12px;
}

.project-list li:last-child {
  border-bottom: none;
}


/* ==================== PROJECT PAGE HERO ==================== */
/* Header section for the project details page */

.project-hero {
  background: linear-gradient(135deg, #0b1220 0%, #0f2747 55%, #0f4c5c 100%);

  color: #ffffff;
}

.project-hero .section-label {
  color: #38bdf8;
}

.project-hero .section-title {
  color: #ffffff;
}

.project-hero .about-text {
  color: #cbd5e1;
}

.project-hero .lead {
  color: #cbd5e1;
}

.project-hero hr {
  border-color: #64748b;
}

.project-goals-card {
  height: auto;
}


/* ==================== APPLICATION ARCHITECTURE ==================== */
/* Layout and styling for the application architecture diagram */

.architecture-diagram {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.architecture-node {
  width: 100%;
  max-width: 560px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 20px 25px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.architecture-label {
  display: block;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
}

.architecture-node h3 {
  color: #0f172a;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.architecture-node p {
  color: #64748b;
  margin-bottom: 0;
}

/* Connections and arrows between architecture layers */

.architecture-connector {
  text-align: center;
  color: #58677d;
  font-size: 0.8rem;
  padding: 7px 0;
}

.architecture-arrow {
  color: #2563eb;
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 3px;
}

/* Application layer with routing and request processing */

.architecture-application-layer {
  width: 100%;
  max-width: 650px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 4px solid #2563eb;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.architecture-layer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.architecture-layer-content > div:first-child {
  border-right: 1px solid #e2e8f0;
  padding-right: 25px;
}

.architecture-layer-content h3 {
  color: #0f172a;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.architecture-layer-content p {
  color: #64748b;
  margin-bottom: 0;
}

/* ==================== TECHNOLOGY STACK ==================== */
/* Cards for the technologies used in the application */

.technology-stack-card {
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #2563eb;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.technology-category {
  display: block;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  margin-bottom: 7px;
}

.technology-stack-card h3 {
  color: #0f172a;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.technology-stack-card p {
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.6;
}


/* ==================== QA & TESTING STACK ==================== */
/* Cards for QA tools, frameworks, and testing areas */

.testing-stack-card {
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.testing-category {
  display: block;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  margin-bottom: 7px;
}

.testing-stack-card h3 {
  color: #0f172a;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.testing-stack-card p {
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ==================== TEST STRATEGY ==================== */
/* Cards for the main testing areas and test coverage */

.test-strategy-card {
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 30px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.test-strategy-card h3 {
  color: #0f172a;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.test-strategy-card ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.test-strategy-card li {
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.5;
}

.test-strategy-card li:last-child {
  margin-bottom: 0;
}


/* ==================== API COVERAGE ==================== */
/* Cards for API endpoints and request methods */

.api-endpoint-card {
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 28px 30px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.api-method {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Different colors for GET and POST methods */

.get-method {
  background-color: #e0f2fe;
  color: #0369a1;
}

.post-method {
  background-color: #dcfce7;
  color: #15803d;
}

.api-endpoint-card h3 {
  color: #0f172a;
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-family: Consolas, "Courier New", monospace;
}

.api-endpoint-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.api-endpoint-card ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.api-endpoint-card li {
  color: #64748b;
  margin-bottom: 7px;
  line-height: 1.5;
}

.api-endpoint-card li:last-child {
  margin-bottom: 0;
}


/* ==================== DATABASE VALIDATION ==================== */
/* Database schema and validation cards */

.database-validation-card {
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 28px 30px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.database-category {
  display: block;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  margin-bottom: 8px;
}

.database-validation-card h3 {
  color: #0f172a;
  font-size: 1.3rem;
  margin-bottom: 18px;
}


/* Database table fields and data types */

.database-field {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
}

.database-field:last-child {
  border-bottom: none;
}

.database-field span:first-child {
  color: #0f172a;
  font-weight: 600;
}

.database-field span:last-child {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  text-align: right;
}


/* Database validation checklist */

.database-validation-list {
  margin-bottom: 0;
  padding-left: 20px;
}

.database-validation-list li {
  color: #64748b;
  margin-bottom: 9px;
  line-height: 1.5;
}

.database-validation-list li:last-child {
  margin-bottom: 0;
}

/* ==================== CONTACT ==================== */
/* Contact section text */

.contact-text {
  color: #64748b;
  font-size: 1.05rem;
}


/* ==================== BUTTONS ==================== */
/* Main button styles and hover states */

.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

#project-details-button {
  background-color: #0f766e;
  border-color: #0f766e;
  color: white;
}

#project-details-button:hover,
#project-details-button:focus,
#project-details-button:focus-visible,
#project-details-button:active {
  background-color: #115e59;
  border-color: #115e59;
  color: white;
}


/* ==================== FOOTER ==================== */
/* Footer background, text color, and spacing */

.portfolio-footer {
  background-color: #070d18;
  color: #94a3b8;
  padding: 25px 0;
}


/* ==================== RESPONSIVE ==================== */
/* Keep the desktop hero balanced without excessive vertical whitespace */

@media (min-width: 992px) {
  .hero-section {
    min-height: 78vh;
  }

  .hero-section .min-vh-75 {
    min-height: 68vh;
  }
}

/* Adjust layout for tablets and smaller screens */

@media (max-width: 991px) {
  .hero-section {
    text-align: center;
  }

  .hero-img {
    margin-top: 30px;
  }

  .navbar-nav {
    padding-top: 15px;
  }

  .nav-link {
    margin-left: 0;
  }
}


/* Adjust layout for mobile screens */

@media (max-width: 576px) {
  .section-padding {
    padding: 65px 0;
  }

  .hero-section h1 {
    font-size: 2.3rem;
  }

  .hero-img {
    border-radius: 12px;
  }

  .application-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .architecture-layer-content {
    grid-template-columns: 1fr;
  }

  .architecture-layer-content > div:first-child {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-right: 0;
    padding-bottom: 18px;
  }
}


/* ==================== SCROLL TO TOP ==================== */
/* Floating button used to return to the top of the page */

#scroll-top-button {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 50px;
  height: 50px;

  border: none;
  border-radius: 50%;

  background-color: #2563eb;
  color: white;

  font-size: 24px;

  display: none;
  cursor: pointer;
}

/* Show the button after scrolling down */

#scroll-top-button.show {
  display: block;
}


/* ==================== TESTING EXPERTISE ==================== */
/* Badge styles for testing skills and areas of experience */

#skills .badge {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 16px !important;

  background-color: #ffffff !important;
  color: #334155 !important;

  border: 1px solid #dbe3ec;
  border-radius: 10px !important;

  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
